package com.tongji.diy.controller
{
	import com.tongji.diy.event.UploadRoomVertexEvent;
	import com.tongji.diy.model.RoomDataModel;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author xxj
	 * 
	 */
	public class UploadRoomVertexCommand extends Command
	{
		[Inject]
		public var event:UploadRoomVertexEvent;
		
		[Inject]
		public var model:RoomDataModel;
		
		override public function execute():void
		{
			model.uploadVertex(event.roomVertex, event.nodePosition);
		}
	}
}